package com.taobao.api.request;

import java.util.Date;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.TmallCloudstoreTradePosUpdateResponse;

/**
 * TOP API: tmall.cloudstore.trade.pos.update request
 * 
 * @author top auto create
 * @since 1.0, 2019.01.21
 */
public class TmallCloudstoreTradePosUpdateRequest extends BaseTaobaoRequest<TmallCloudstoreTradePosUpdateResponse> {
	
	

	/** 
	* 主订单号
	 */
	private Long orderId;

	/** 
	* pos单号
	 */
	private String posNo;

	/** 
	* 请求时间
	 */
	private Date requestTime;

	/** 
	* 流水号
	 */
	private String serialNo;

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setPosNo(String posNo) {
		this.posNo = posNo;
	}

	public String getPosNo() {
		return this.posNo;
	}

	public void setRequestTime(Date requestTime) {
		this.requestTime = requestTime;
	}

	public Date getRequestTime() {
		return this.requestTime;
	}

	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}

	public String getSerialNo() {
		return this.serialNo;
	}

	public String getApiMethodName() {
		return "tmall.cloudstore.trade.pos.update";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("order_id", this.orderId);
		txtParams.put("pos_no", this.posNo);
		txtParams.put("request_time", this.requestTime);
		txtParams.put("serial_no", this.serialNo);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<TmallCloudstoreTradePosUpdateResponse> getResponseClass() {
		return TmallCloudstoreTradePosUpdateResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	

}